<?php

session_start();


//if (!defined('_VALID_MOS'))
//    define('_VALID_MOS', 1);

include_once 'constant.php';
require_once LIBRARIES_ENTITIES_CONFIGURATION;
include_once LIBRARIES_ENTITIES_DATABASE;


include_once LIBRARIES_TOOLS_UTILITY;
include_once LIBRARIES_TOOLS_XTEMPLATE;
include_once LIBRARIES_TOOLS_PAGERFRONTEND;
include_once LIBRARIES_TOOLS_HIGHLIGHT;
include_once LIBRARIES_TOOLS_MODULES;






$configuration = new Configuration();
$xmlFile = ROOT . DS . 'configuration.xml';
$configuration->getConfiguration($xmlFile);
$siteName = $configuration->getSiteName();
$keyword = $configuration->getKeyWord();
$address = $configuration->getAddress();
$email = $configuration->getEmail();
$phoneNumber = $configuration->getPhoneNumber();
$color = $configuration->getColor();
$marquee = $configuration->getMarquee();



if ($configuration->getOffline() == 0) {
    include_once ROOT . DS . "templates/default/index.php";
} else {
    echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
    echo $configuration->getOfflineMessage();
}
?>